from matplotlib import pyplot as plt
import random


def plot_paired(yData1, yData2):
    repeats = 6
    xData = [0,1]
    offsetX = [0.05, 0.95]
    pairs = [(x,y) for (x,y) in zip(yData1, yData2)]
    colors = ['b', 'g', 'r', 'c', 'm', 'y', 'k']
    colors = colors*repeats
    tempAlphas = [1, 0.9, 0.8, 0.7, 0.6, 0.5]
    alphas = [tempAlphas[y] for y in range(repeats) for x in range(7)]
    for data in range(len(pairs)):
        plt.scatter(xData, pairs[data], c=colors[data], alpha=alphas[data], edgecolor='none', s=200)
        plt.plot(offsetX, pairs[data], colors[data]+'--', alpha=alphas[data])
    plt.show()
###fake data
#yData1 = range(40) 
#yData2 = [x+random.randint(0,40)-random.randint(0,20) for x in range(40)]
#plot_paired(yData1, yData2)
    
